<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
require_once 'checklogin.php';
$p = '';
if (isset($_GET['p']))
    $p = $_GET['p'];
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Quản lý lịch công tác</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <!-- Bootstrap -->
        <link href="../css/bootstrap.min.css" rel="stylesheet">
        <link href="css/style.css" rel="stylesheet">
        <link href="jquery.datetimepicker.css" rel="stylesheet">
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>	
        <script type="text/javascript" src="ckfinder/ckfinder.js"></script>	
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="navbar navbar-default"><?php include("menu.php") ?></div>
        <div class="container">
            <?php
            if ($p == 'working_add')
                include("working_add.php");
            else if ($p == 'newsadd')
                include ("news_add.php");
            else if ($p == 'working_edit')
                include ("working_edit.php");
            else
                include("list_working.php");
            ?>
        </div>
        <footer class="text-center">&copy;Copyright 2014. All rights reserved</footer>
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

        <!-- Include all compiled plugins (below), or include individual files as needed -->

        <script src="jquery.datetimepicker.js"></script>
        <script>
            $("#date").datetimepicker({
                lang: 'vi',
                format: 'd/m/Y H:i',
                closeOnDateSelect: true,
            });
            $("#checkin").datetimepicker({
                lang: 'vi',
                format: 'd/m/Y H:i'
            });
            $("#checkout").datetimepicker({
                lang: 'vi',
                format: 'd/m/Y H:i'
            });
        </script>
        <script src="../js/bootstrap.min.js"></script>
    </body>
</html>